# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: ushi <ushi+arch@honkgong.info>

pkgname=whitedb
pkgver=0.7.3
pkgrel=9
pkgdesc='Lightweight NoSQL database library operating fully in main memory'
arch=('loong64' 'x86_64')
url='http://whitedb.org/'
license=('GPL')
makedepends=('python')
optdepends=('python: for python bindings')
source=(http://whitedb.org/$pkgname-$pkgver.tar.gz)
md5sums=('fb9d79ad19d65f3f50fe3f82316a9721')
sha256sums=('10c4ccd754ed2d53dbdef9ec16c88c732aa73d923fc0ee114e7e3a78a812849d')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --with-python
  make
}

package() {
  make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
}
